package com.article.service;

import com.article.common.PageParam;
import com.article.model.Article;


public interface IArticleService {

    /**
     * 列表查询
     * @param pageParam
     * @author lx
     * @return
     */
    PageParam queryAll(PageParam pageParam);


    /**
     * 根据id获取单条
     * @param id
     * @author lx
     * @return
     */
    Article getOne(Integer id);

    /**
     * 修改
     * @param entity
     * @author lx
     * @return
     */
    boolean update(Article entity);

    /**
     * 新增
     * @param entity
     * @author lx
     * @return
     */
    boolean add(Article entity);

    /**
     * 删除
     * @param id
     * @author lx
     * @return
     */
    boolean delete(Integer id);

    /**
     * 批量删除
     * @param ids
     * @author lx
     * @return
     */
    boolean deleteByIds(Integer[] ids);

}
